| Package | jp.nyatla.nyartoolkit.as3.core.pickup |
| Class | public class NyARColorPatt_Perspective |
| Inheritance | NyARColorPatt_Perspective Object |
| Implements | INyARColorPatt |
| Subclasses | NyARColorPatt_Perspective_O2 |
| Property | Defined By | ||
|---|---|---|---|
| _patdata : Vector.<int> | NyARColorPatt_Perspective | ||
| _perspective_gen : NyARPerspectiveParamGenerator_O1 | NyARColorPatt_Perspective | ||
| __pickFromRaster_cpara : Vector.<Number> | NyARColorPatt_Perspective | ||
| _pickup_lt : NyARIntPoint2d | NyARColorPatt_Perspective | ||
| _resolution : int | NyARColorPatt_Perspective | ||
| _size : NyARIntSize | NyARColorPatt_Perspective | ||
| Method | Defined By | ||
|---|---|---|---|
NyARColorPatt_Perspective(i_width:int, i_height:int, i_point_per_pix:int, i_edge_percentage:int = -1)
例えば、64
| NyARColorPatt_Perspective | ||
getBuffer():Object | NyARColorPatt_Perspective | ||
getBufferType():int | NyARColorPatt_Perspective | ||
getHeight():int | NyARColorPatt_Perspective | ||
| NyARColorPatt_Perspective | |||
| NyARColorPatt_Perspective | |||
getWidth():int | NyARColorPatt_Perspective | ||
hasBuffer():Boolean | NyARColorPatt_Perspective | ||
isEqualBufferType(i_type_value:int):Boolean | NyARColorPatt_Perspective | ||
| NyARColorPatt_Perspective | |||
setEdgeSize(i_x_edge:int, i_y_edge:int, i_resolution:int):void
矩形領域のエッジサイズを指定します。
エッジの計算方法は以下の通りです。
1.マーカ全体を(i_x_edge+width)x(i_y_edge+height)の解像度でパラメタを計算します。
2.ピクセルの取得開始位置を(i_x_edge/2,i_y_edge/2)へ移動します。
3.開始位置から、width x height個のピクセルを取得します。
ARToolKit標準マーカの場合は、width/2,height/2を指定してください。
| NyARColorPatt_Perspective | ||
setEdgeSizeByPercent(i_x_percent:int, i_y_percent:int, i_resolution:int):void | NyARColorPatt_Perspective | ||
wrapBuffer(i_ref_buf:Object):void | NyARColorPatt_Perspective | ||
| __pickFromRaster_cpara | property |
protected var __pickFromRaster_cpara:Vector.<Number>| _patdata | property |
protected var _patdata:Vector.<int>| _perspective_gen | property |
protected var _perspective_gen:NyARPerspectiveParamGenerator_O1| _pickup_lt | property |
protected var _pickup_lt:NyARIntPoint2d| _resolution | property |
protected var _resolution:int| _size | property |
protected var _size:NyARIntSize| NyARColorPatt_Perspective | () | Constructor |
public function NyARColorPatt_Perspective(i_width:int, i_height:int, i_point_per_pix:int, i_edge_percentage:int = -1)例えば、64
Parametersi_width:int — 取得画像の解像度幅
| |
i_height:int — 取得画像の解像度高さ
| |
i_point_per_pix:int — 1ピクセルあたりの縦横サンプリング数。2なら2x2=4ポイントをサンプリングする。
| |
i_edge_percentage:int (default = -1) — エッジ幅の割合(ARToolKit標準と同じなら、25)
|
| getBuffer | () | method |
public final function getBuffer():ObjectReturnsObject |
| getBufferType | () | method |
public final function getBufferType():intReturnsint |
| getHeight | () | method |
public final function getHeight():intReturnsint |
| getRgbPixelReader | () | method |
| getSize | () | method |
| getWidth | () | method |
public final function getWidth():intReturnsint |
| hasBuffer | () | method |
public final function hasBuffer():BooleanReturnsBoolean |
| isEqualBufferType | () | method |
public final function isEqualBufferType(i_type_value:int):BooleanParameters
i_type_value:int |
Boolean |
| pickFromRaster | () | method |
public function pickFromRaster(image:INyARRgbRaster, i_vertexs:Vector.<NyARIntPoint2d>):Boolean
Parameters
image:INyARRgbRaster | |
i_vertexs:Vector.<NyARIntPoint2d> |
Boolean |
See also
| setEdgeSize | () | method |
public function setEdgeSize(i_x_edge:int, i_y_edge:int, i_resolution:int):void矩形領域のエッジサイズを指定します。 エッジの計算方法は以下の通りです。 1.マーカ全体を(i_x_edge+width)x(i_y_edge+height)の解像度でパラメタを計算します。 2.ピクセルの取得開始位置を(i_x_edge/2,i_y_edge/2)へ移動します。 3.開始位置から、width x height個のピクセルを取得します。 ARToolKit標準マーカの場合は、width/2,height/2を指定してください。
Parameters
i_x_edge:int | |
i_y_edge:int | |
i_resolution:int |
| setEdgeSizeByPercent | () | method |
public function setEdgeSizeByPercent(i_x_percent:int, i_y_percent:int, i_resolution:int):voidParameters
i_x_percent:int | |
i_y_percent:int | |
i_resolution:int |
| wrapBuffer | () | method |
public final function wrapBuffer(i_ref_buf:Object):voidParameters
i_ref_buf:Object |